package com.ian.service.impl;

import com.ian.dao.PerPermitMapper;
import com.ian.pojo.PerPermit;
import com.ian.service.PerPermitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class PerPermitServiceImpl implements PerPermitService {
    @Autowired
    PerPermitMapper perPermitMapper;

    @Override
    public PerPermit findByUid(Integer perUserId) {
        return perPermitMapper.findByUid(perUserId);
    }

    @Transactional
    @Override
    public int updateByPrimaryKeySelective(PerPermit record) {
        return perPermitMapper.updateByPrimaryKeySelective(record);
    }
}
